use actix_web::web;
use crate::controllers::admin::*;

pub fn configure_admin_routes(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("")
            // Resource management routes
            .service(upload_resources)
            .service(get_resource)
            .service(delete_resource)
            // Article resource management
            .service(assign_resource_to_article)
            .service(remove_resource_from_article)
            .service(get_article_resources)
            // Product resource management
            .service(assign_resource_to_product)
            .service(remove_resource_from_product)
            .service(get_product_resources)
    );
}